{
  "properties" : { },
  "id" : "74a80af23aec49f4b7be263837850279",
  "script" : null,
  "groupId" : "f2a318ab75a44534b6744b38c923f12f",
  "name" : "详情",
  "createTime" : null,
  "updateTime" : 1734879786155,
  "lock" : "0",
  "createBy" : null,
  "updateBy" : null,
  "path" : "/detail",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ {
    "name" : "Token",
    "value" : "6c6ef26d-e6ce-419e-a93d-b01f03726212",
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 402,\n    \"message\": \"凭证已过期\",\n    \"data\": null,\n    \"timestamp\": 1734879765661,\n    \"executeTime\": null\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import 'cn.dev33.satoken.stp.StpUtil';
import "@post:/system/security/permissions" as authoritiesList; 

var user = db.table("sys_user").where().eq("id",StpUtil.getLoginId()).selectOne()
user.authorities = authoritiesList()
return user